package com.gzp.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.httpDemo.doMain.User;

@Configuration // 相当于application-a.xml
public class JavaConfigC {

	@Bean // 相当于<bean id="user3" class="com.httpDemo.doMain.User"/>
	public User user3() {
		return new User(3, "wuwang", "上海市海定区");
	}
}
